package com.dahe.ysxt.vector.common;


import com.dahe.ysxt.vector.exception.ErrorCode;

public   class ResponseBean<T> {
    private String code = ErrorCode.CODE_0;
    private String msg;
    private T data;

    public ResponseBean() {

    }

    public ResponseBean(String code) {
        this(code, null, null);
    }

    public ResponseBean(String code, String msg) {
        this(code, msg, null);
    }


    public ResponseBean(String code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }




    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
